repo: Add an internal struct to manage remotes
authorMatthew Barnes <mbarnes@redhat.com>
Wed, 3 Dec 2014 23:58:16 +0000 (18:58 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Mon, 8 Dec 2014 17:49:10 +0000 (12:49 -0500)
commit17b9e399b8b70266a3023a0671f73901976510e2
tree59ae97f32529fbd7fabc14b4551a2ce812aaee28
parentf3dcb7a052ecc94fb25a9e4598dea911e71e6221
repo: Add an internal struct to manage remotes

OstreeRemote is a reference-counted struct that encompasses data about a
remote, whether read from a configuration file or created explicitly via
ostree_repo_remote_add().

OstreeRemotes are held in an internal table indexed by remote name.
This solves some problems caused by merging system-wide remote data into
the OstreeRepo's internal config key file.

Also fixes https://bugzilla.gnome.org/show_bug.cgi?id=740911
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo.c